#ifndef __M5310_H
#define __M5310_H

#include "sys.h"
#include "usart2.h"
#include "string.h"  
#include "delay.h"
#include "usart.h"
#include <string.h>
#include <stdarg.h>	 	 
#include <stdio.h>	
#include <stdlib.h>

u8 * m5310_check_cmd(uint8_t *str);
u8   m5310_send_cmd(uint8_t *cmd,uint8_t *ack,uint16_t waittime);
u8 	 m5310_onenet_miplwrite_rsp(int msgid, int result);
                                            
void m5310_gpio_init(void);
void m5310_startup(void);
void m5310_close(void);
void init_m5310(void);
                                            
void Control_all( char * nb_iotdat );
void link_gy30(void);
void Control_init(void);
                                            
#endif

/*************************************END OF FILE******************************/
